package org.xandroid.component;

import org.xandroid.util.XToastHelper;

import android.support.v4.app.Fragment;


/**
 * 扩展的Fragment
 * @author Kross(krossford@foxmail.com)
 * @date 2014-4-1 19:49:09
 * */
public class XFragment extends Fragment {
	
	/**
	 * show a toast message
	 * @param resId string resrouce id in R.java
	 * */
	protected void toast(int resId) {
		XToastHelper.show(getActivity(), resId);
	}
	
	/**
	 * show a toast message
	 * @param content message content
	 * */
	protected void toast(String content) {
		XToastHelper.show(getActivity(), content);
	}
}
